import type { ITableHerader } from "../../types/common/table"

export interface IButton{
    text:string
    event:string,
    type?:string,
    show:boolean
    plain?:boolean
}
export interface Ipoint extends ITableHerader{
    type?:string
    event?:string
    button?:IButton[]
}

export interface IRouteList {
  id: number;
  name: string;
}


const tableHead:Ipoint[]=[
    {
        prop:"name",
        label:"地址",
        width:'820'
    },
    
    {
        label:'操作',
        type:'button',
       button:[
       
            {
                text:'生成二维码',
                event:'plain',
                type:'primary' ,
                show:true ,
                plain:true
              },
            {
                text:'修改',
                event:'update',
                type:'success',
                show:true
            },
            {
                text:'删除',
                event:'del',
                type:'danger',
                show:true
            },
           
        ]
     
    }
]
export {
    ITableHerader,
    tableHead
}